<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3"><span class="font-bold" translate="header.navbar.tasks">Tasks</span></h1>
</div>
<div ng-class="isSmart?'':'wrapper-md'">
    <div class="row">
        <div class="col-lg-12">
            <div class="row">
                <div class="col-sm-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <div class="clearfix">
                                <a href class="pull-left thumb-md avatar b-3x m-r">
                                    <img src="{{currentUser.headImageUrl}}" alt="...">
                                </a>
                                <div class="clear">
                                    <div class="h3 m-t-xs m-b-xs">
                                        {{ currentUser.realName }}
                                        <i class="fa fa-circle text-success pull-right text-xs m-t-sm"></i>
                                    </div>
                                    <small class="text-muted"></small>
                                </div>
                            </div>
                        </div>
                        <div class="list-group no-radius alt" ng-if="taskSummary.total<=0">
                            <a class="list-group-item" href>
                                <i class="fa fa-exclamation fa-fw text-muted"></i>
                                <span class="font-bold" translate="task.noTask">No Task</span>
                            </a>
                        </div>
                        <div class="list-group no-radius alt" ng-if="taskSummary.total>0">
                            <a class="list-group-item" href
                               ui-sref="app.process.service({service_Id:0,status:'waitpaid'})"
                               ng-if="taskSummary.pay>0">
                                <span class="badge bg-danger">{{taskSummary.pay}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="aside.nav.process.payment">Payment</span>
                            </a>
                            <a class="list-group-item" href
                               ui-sref="app.process.service({service_Id:0,status:'supplied'})"
                               ng-if="taskSummary.supplement>0">
                                <span class="badge bg-danger">{{taskSummary.supplement}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="business.patcase.supplement">To be supplied</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.filter"
                               ng-if="taskSummary.selection>0">
                                <span class="badge bg-danger">{{taskSummary.selection}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="aside.nav.process.filter">Filter</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.diagnosis"
                               ng-if="taskSummary.diagnosis>0">
                                <span class="badge bg-danger">{{taskSummary.diagnosis}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="aside.nav.process.diagnosis">Diagnosis</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.accumulation"
                               ng-if="taskSummary.accumulation>0">
                                <span class="badge bg-danger">{{taskSummary.accumulation}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="aside.nav.process.accumulation">Accumulation</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.accumulation"
                               ng-if="taskSummary.opeCenTime>0">
                                <span class="badge bg-danger">{{taskSummary.opeCenTime}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="business.accumulation.operation">Accumulation</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.paymentOperation"
                               ng-if="taskSummary.payOperation>0">
                                <span class="badge bg-danger">{{taskSummary.payOperation}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="aside.nav.process.paymentOperation">Payment</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.operation.businessmanager"
                               ng-if="taskSummary.confirmByBusiness>0">
                                <span class="badge bg-danger">{{taskSummary.confirmByBusiness}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="business.servreq.confirm_Business">confirm by business manager</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.operation.doctor"
                               ng-if="taskSummary.confirmByCentDoc>0">
                                <span class="badge bg-danger">{{taskSummary.confirmByCentDoc}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="business.servreq.confirm_CentDoc">confirm by doctor of center</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.operation.operator"
                               ng-if="taskSummary.confirmByOperator>0">
                                <span class="badge bg-danger">{{taskSummary.confirmByOperator}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="business.servreq.confirm_Operator">confirm by operator</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.operation.medicaladmin"
                               ng-if="taskSummary.operation>0">
                                <span class="badge bg-danger">{{taskSummary.operation}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="business.servreq.confirm_MedicalAdmin">confirm by medical admin</span>
                            </a>
                            <a class="list-group-item" href ui-sref="app.process.finish"
                               ng-if="taskSummary.evaluation>0">
                                <span class="badge bg-danger">{{taskSummary.evaluation}}</span>
                                <i class="fa fa-folder-o fa-fw text-muted"></i>
                                <span class="font-bold" translate="aside.nav.process.evaluation">Evaluation</span>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>